home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIXTFBindableElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  109 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXTFBindableElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXTFBindableElement_h__
  6. #define __gen_nsIXTFBindableElement_h__
  7.  
  8.  
  9. #ifndef __gen_nsIXTFElement_h__
  10. #include "nsIXTFElement.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIXTFBindableElementWrapper; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIXTFBindableElement */
  21. #define NS_IXTFBINDABLEELEMENT_IID_STR "8dcc630c-9adc-4c60-9954-a004cb45e4a7"
  22.  
  23. #define NS_IXTFBINDABLEELEMENT_IID \
  24.   {0x8dcc630c, 0x9adc, 0x4c60, \
  25.     { 0x99, 0x54, 0xa0, 0x04, 0xcb, 0x45, 0xe4, 0xa7 }}
  26.  
  27. /**
  28.  * nsIXTFBindableElement can be used to add support for new interfaces to
  29.  * normal XML elements. XBL bindings do work with this kind of XTF elements.
  30.  *
  31.  * @note getScriptingInterfaces don't work at the moment with
  32.  * nsIXTFBindableElements. The problem is that XBL does not play nicely
  33.  * with that kind of interfaces.
  34.  * However, if nsIXTFBindableElement implements scriptable interfaces, those
  35.  * can be used by explicitly QIing to them.
  36.  */
  37. class NS_NO_VTABLE nsIXTFBindableElement : public nsIXTFElement {
  38.  public: 
  39.  
  40.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXTFBINDABLEELEMENT_IID)
  41.  
  42.   /**
  43.    * onCreated will be called before any notifications are sent to
  44.    * the xtf element.
  45.    *
  46.    * @param wrapper is a weak proxy to the wrapping element
  47.    * (i.e. holding a reference to this will not create a cycle).
  48.    */
  49.   /* void onCreated (in nsIXTFBindableElementWrapper wrapper); */
  50.   NS_IMETHOD OnCreated(nsIXTFBindableElementWrapper *wrapper) = 0;
  51.  
  52. };
  53.  
  54. /* Use this macro when declaring classes that implement this interface. */
  55. #define NS_DECL_NSIXTFBINDABLEELEMENT \
  56.   NS_IMETHOD OnCreated(nsIXTFBindableElementWrapper *wrapper); 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  59. #define NS_FORWARD_NSIXTFBINDABLEELEMENT(_to) \
  60.   NS_IMETHOD OnCreated(nsIXTFBindableElementWrapper *wrapper) { return _to OnCreated(wrapper); } 
  61.  
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  63. #define NS_FORWARD_SAFE_NSIXTFBINDABLEELEMENT(_to) \
  64.   NS_IMETHOD OnCreated(nsIXTFBindableElementWrapper *wrapper) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCreated(wrapper); } 
  65.  
  66. #if 0
  67. /* Use the code below as a template for the implementation class for this interface. */
  68.  
  69. /* Header file */
  70. class nsXTFBindableElement : public nsIXTFBindableElement
  71. {
  72. public:
  73.   NS_DECL_ISUPPORTS
  74.   NS_DECL_NSIXTFBINDABLEELEMENT
  75.  
  76.   nsXTFBindableElement();
  77.  
  78. private:
  79.   ~nsXTFBindableElement();
  80.  
  81. protected:
  82.   /* additional members */
  83. };
  84.  
  85. /* Implementation file */
  86. NS_IMPL_ISUPPORTS1(nsXTFBindableElement, nsIXTFBindableElement)
  87.  
  88. nsXTFBindableElement::nsXTFBindableElement()
  89. {
  90.   /* member initializers and constructor code */
  91. }
  92.  
  93. nsXTFBindableElement::~nsXTFBindableElement()
  94. {
  95.   /* destructor code */
  96. }
  97.  
  98. /* void onCreated (in nsIXTFBindableElementWrapper wrapper); */
  99. NS_IMETHODIMP nsXTFBindableElement::OnCreated(nsIXTFBindableElementWrapper *wrapper)
  100. {
  101.     return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103.  
  104. /* End of implementation class template. */
  105. #endif
  106.  
  107.  
  108. #endif /* __gen_nsIXTFBindableElement_h__ */
  109.